cmake_minimum_required(VERSION 3.17)
project(add_exe_3)

#add_executable(main main.cpp)
add_executable(main WIN32 MACOSX_BUNDLE main.cpp)

get_property(var TARGET main PROPERTY WIN32_EXECUTABLE)
message(STATUS "WIN32_EXECUTABLE = ${var}")

get_property(var TARGET main PROPERTY MACOSX_BUNDLE)
message(STATUS "MACOSX_BUNDLE = ${var}")
